package com.tianji.coupon.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 短信记录发送表
 * </p>
 *
 * @author 陈佳
 * @since 2024-10-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="LogSms对象", description="短信记录发送表")
public class LogSms extends Model<LogSms> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增ID")
      @TableId(value = "smsId", type = IdType.AUTO)
    private Integer smsid;

    @ApiModelProperty(value = "消息类型")
    @TableField("smsSrc")
    private Integer smssrc;

    @ApiModelProperty(value = "发送者ID")
    @TableField("smsUserId")
    private Long smsuserid;

    @ApiModelProperty(value = "短信内容")
    @TableField("smsContent")
    private String smscontent;

    @ApiModelProperty(value = "短信号码")
    @TableField("smsPhonrNumber")
    private String smsphonrnumber;

    @ApiModelProperty(value = "短信返回值")
    @TableField("smsReturnCode")
    private String smsreturncode;

    @ApiModelProperty(value = "短信中的验证码")
    @TableField("smsCode")
    private String smscode;

    @ApiModelProperty(value = "调用短信的接口")
    @TableField("smsFunc")
    private String smsfunc;

    @ApiModelProperty(value = "IP地址")
    @TableField("smsIP")
    private String smsip;

    @ApiModelProperty(value = "创建时间")
    @TableField("createTime")
    private LocalDateTime createtime;


    @Override
    public Serializable pkVal() {
        return this.smsid;
    }

}
